package demo;


public class Test {
    public static void func(Shape shape){
        shape.draw();
    }

    public static void main(String[] args) {
        Shape shape1=new Cycle();
        func(shape1);
        Shape shape2=new Rect();
        func(shape2);
    }


}
